package cn.cecurio.multithread.ch1_3;

/**
 * @author: Cecurio
 * @create: 2018-01-16 20:52
 **/
public class CountOperate extends Thread {
    public CountOperate(String name) {
        //this.setName(name);
        System.out.println("CountOperate---begin");
        System.out.println("Thread.currentThread().getName()=" + Thread.currentThread().getName());
        System.out.println("this.getName()=" + this.getName());
        System.out.println("CountOperate---end");
    }

    @Override
    public void run() {
        System.out.println("run---begin");
        System.out.println("Thread.currentThread().getName()=" + Thread.currentThread().getName());
        System.out.println("this.getName()=" + this.getName());
        System.out.println("run---end");
    }
}
